home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
s
/
ungreekboxes.pprx
< prev
next >
Wrap
Text File
|
1992-03-14
|
886b
|
51 lines
/*
@BUnGreekBoxes @P@ICopyright Gold Disk Inc., January, 1992
This genie will ungreek all boxes of a certain type in a document
*/
cr = '0a'x
address command
call SafeEndEdit.rexx()
first = ppm_DocFirstPage()
last = ppm_DocLastPage()
call ppm_AutoUpdate(0)
types = "PDraw Clips"cr"Text"cr"BitMap"cr"Structured Graphics"cr"EPSF"
types = upper(ppm_SelectFromList("Select boxes to UnGreek", 20, 3, 1, types))
if types = '' then exit_msg()
call ppm_ShowStatus("Working..")
do page = first to last
box = ppm_PageFirstBox(page)
do while box ~= 0
info = upper(word(ppm_GetBoxInfo(box), 1))
if pos(info, types) ~= 0 then
call ppm_SetBoxHide(box, 0)
box = ppm_PageNextBox(box)
end
end
exit_msg()
exit_msg: procedure
do
arg message
if message ~= '' then call ppm_Inform(1,message,)
call ppm_ClearStatus()
call ppm_AutoUpdate(1)
exit
end